import pandas as pd
from pandas import DataFrame

datafile = './文本/客运量_1-1.csv' 
datafile2 = './文本/货运量_1-1.csv'

data = pd.DataFrame(pd.read_csv(datafile))
data2 = pd.DataFrame(pd.read_csv(datafile2))

data = data[['Airport name','Year','Whole year']] #选用机场名、年份和年总量s
data2 = data2[['Airport name','Year','Whole year']]

data.to_csv(datafile,index=False,encoding='utf_8_sig')
data2.to_csv(datafile2,index=False,encoding='utf_8_sig')